/**
 *  Copyright 2010 ShenYang voole Co. Ltd.
 *  All right reserved. 
 */
package cn.piaoyi.web.taglib;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts2.components.Component;
import org.apache.struts2.views.jsp.ComponentTagSupport;
import com.opensymphony.xwork2.util.ValueStack;

/**
 * 功能描述:分页标签
 *
 * 创建日期 May 25, 2010
 *
 * @author zhangbaochao
 *
 * @version 1.0
 *
 */
public class GoodsStateTag extends ComponentTagSupport {

	public Component getBean(ValueStack arg0, HttpServletRequest arg1, HttpServletResponse arg2) {
		return new GoodsState(arg0);
	}

	protected int length = 0;

	private String value;
	

	public int getLength() {
		return length;
	}

	public void setLength(int length) {
		this.length = length;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	protected void populateParams() {
		super.populateParams();
		GoodsState gs = (GoodsState) component;
		gs.setValue(value);
	}


}
